<%@ page import="com.nml.sensors.SensorEntityManager"%>
<%@ page import="com.nml.sensors.Transmission"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Transmissions</title>
</head>
<body>



<% 
	List<Transmission> transmissions = SensorEntityManager.getTransmissions();
    Iterator<Transmission> iterator = transmissions.iterator();
    
    out.write("<table>");
    
    while (iterator.hasNext())
    {
    	Transmission transmission = iterator.next();
    	
    	out.write("<tr><td>" + transmission.getRawBytes() + "</td></tr>");
    }
    
    out.write("</table>");
%>

</body>
</html>